package cn.udinghuo.model.archives.yxy.vo;

import com.fasterxml.jackson.annotation.JsonSetter;

import org.springframework.util.Assert;
import java.io.Serializable;
import cn.udinghuo.model.archives.yxy.TenantSource;	

/**
 * @author ssk
 *	用户VO
 */
public class TenantUserVo implements Serializable{

	private static final long serialVersionUID = 1728053248L;
	/**
	* 营销云租户IDtenantId
	*/
	private String tenantId;
	/**
	* 营销用户IDtenantUserId
	*/
	private String tenantUserId;
	/**
	* 编码code
	*/
	private String code;
	/**
	* 客户名称fullName
	*/
	private String fullName;
	/**
	* ERP编码erpCode
	*/
	private String erpCode;
	/**
	* 登录账号userName
	*/
	private String userName;
	/**
	* 手机mobile
	*/
	private String mobile;
	/**
	* 邮箱email
	*/
	private String email;
	/**
	* 职位position
	*/
	private String position;
	/**
	* 来源source
	*/
	private Short source;
	/**
	* 状态码status
	*/
	private Integer status;
	/**
	* 提示信息message
	*/
	private String message;
	/**
	* 人员IDuserId
	*/
	private Long userId;
	/**
	* 企业IDcorpId
	*/
	private Long corpId;
	/**
	* 类型userType
	*/
	private Short userType;
	public String getTenantId() {
		return this.tenantId;
	}
	
	public void setTenantId(String value) {
		this.tenantId = value;
	}
	
	public String getTenantUserId() {
		return this.tenantUserId;
	}
	
	public void setTenantUserId(String value) {
		this.tenantUserId = value;
	}
	
	public String getCode() {
		return this.code;
	}
	
	public void setCode(String value) {
		this.code = value;
	}
	
	public String getFullName() {
		return this.fullName;
	}
	
	public void setFullName(String value) {
		this.fullName = value;
	}
	
	public String getErpCode() {
		return this.erpCode;
	}
	
	public void setErpCode(String value) {
		this.erpCode = value;
	}
	
	public String getUserName() {
		return this.userName;
	}
	
	public void setUserName(String value) {
		this.userName = value;
	}
	
	public String getMobile() {
		return this.mobile;
	}
	
	public void setMobile(String value) {
		this.mobile = value;
	}
	
	public String getEmail() {
		return this.email;
	}
	
	public void setEmail(String value) {
		this.email = value;
	}
	
	public String getPosition() {
		return this.position;
	}
	
	public void setPosition(String value) {
		this.position = value;
	}
	
	public TenantSource getSource() {
        if(this.source == null){
			return null;
		}
		return TenantSource.find(this.source.intValue());
	}
	@JsonSetter
	public void setSource(TenantSource value) {
		Assert.notNull(value, "enum value is invalid value!");
		this.source = value.getValue();
	}
	
	public void setSource(Short value) {
		Assert.notNull(value,"enum value is invalid value!");
		Assert.notNull(TenantSource.find(value.intValue()),"enum value is invalid value!"); 
		this.source = value;
	}
	
	public Integer getStatus() {
		return this.status;
	}
	
	public void setStatus(Integer value) {
		this.status = value;
	}
	
	public String getMessage() {
		return this.message;
	}
	
	public void setMessage(String value) {
		this.message = value;
	}
	
	public Long getUserId() {
		return this.userId;
	}
	
	public void setUserId(Long value) {
		this.userId = value;
	}
	
	public Long getCorpId() {
		return this.corpId;
	}
	
	public void setCorpId(Long value) {
		this.corpId = value;
	}
	
	public Short getUserType() {
		return this.userType;
	}
	
	public void setUserType(Short value) {
		this.userType = value;
	}
	

    @Override
    public String toString() {
        return super.toString();
    }
}
